package com.qf.mapper;

import com.qf.entity.Student;
import com.qf.entity.StudentVO;

import java.util.HashMap;
import java.util.List;

public interface StudentMapper {
    Student findById(int id);

    List<Student> findAll();

    List<Student> findByKeyWord(HashMap<String, Object> map);

    void add(Student student);

    void edit(Student student);

    void deleteById(int id);

    void deleteByIds(List<Integer> ids);

    List<StudentVO> findAllStudentAndClassroom();

    StudentVO findStudentAndAllSubjectByStuid(int id);

    StudentVO findStudentAndAllSubjectAndTeacherByStuid(int id);

    List<Integer> findAllSubjectId(int id);

    Student login(String username);
}
